package polymorphismlearn;

public class Wind extends Instrument {
	public int f = 1;
	private Player p = new Player();
	public Wind(){
		System.out.println("Wind");
	}
	public  Wind(int m){
		System.out.println("Wind");
		f =m;
	}
/*	public void Instrument(){
		System.out.println("wind");
	}*/
	public void getData(){
		System.out.println("f is"+this.f);
		System.out.println("super f is"+super.f);
	}
	@Override
	public void play(Note t){
		System.out.println("Wind play "+t);
		this.test3(t);
	}
	public void test2(Note t){
		System.out.println("Wind test2 + "+t);		
	}
	private void test3(Note t){
		System.out.println("Wind test3 "+t);
	}
	public static void test4(){
		System.out.println("Wind static test");
	}
	@Override
	public Wind getObject(){
		return new Wind();
	}
	public static void main(String []argv){
		Wind w = new Wind();
	}
}
